﻿using Abp.Application.Services.Dto;
using Mt.Site.Core.Members;
using System;
using System.ComponentModel.DataAnnotations;

namespace Mt.Site.Application.Members.BackEnd.Dto
{
    public class MemberInput:EntityDto<Guid>
    {
        /// <summary>
        /// 登陆账号
        /// </summary>
        [StringLength(Member.MaxLoginNameLength)]
        [Required]
        public  string LoginName { get; set; }

        /// <summary>
        /// 邮箱
        /// </summary>
        [StringLength(Member.MaxEmailLength)]
        [Required]
        public  string Email { get; set; }

        public bool IsTrainingAllowed { get; set; }

        /// <summary>
        /// 是否有效
        /// </summary>
        [Required]
        public bool IsActive { get; set; }

        /// <summary>
        /// 是否接收信息
        /// </summary>
        [Required]
        public  bool? IsReceive { get; set; }

    }
}
